package ImageProcessing;

import java.io.IOException;

/**
 * Created by doris on 2016/10/26.
 */
public class ImageProcessingTest {
    public static void main(String[] args) throws IOException {
        //初始化
        ImageProcessing images=new ImageProcessing("images/OriginalImages/picture.jpg");
        //剪切操作
        String readFormat = "jpg";
        String writeFormat = "jpg";
        images.cropImage("images/OutPutImages/剪切.jpg",560,310,270,270,readFormat,writeFormat);
        //按比例缩放操作
        images.changeImageEqualProportion("images/OutPutImages/缩小.jpg",-4);
        images.changeImageEqualProportion("images/OutPutImages/放大.jpg",2);
        //s双线性插值重置边长
        images.resetImageEqualProportion("images/OutPutImages/重置长宽.jpg",900,1600);

    }
}
